import java.util.Scanner;

public class Task14 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入消费金额：");
        int money=sc.nextInt();
        System.out.println("请选择：");
        int num=sc.nextInt();
        Task14 t=new Task14();
        t.money(num,money);
    }
//public static void main(String[] args) {
//    Task14 t=new Task14();
//    t.money(4,500);
//}
    public void money(int num,int money){
        if (num == 1) {
            System.out.println("本次消费总金额：");
            System.out.println(money+2);
            System.out.println("成功换购：百事可乐饮料一瓶");
        }if (num==2){
            System.out.println("本次消费总金额：");
            System.out.println(money+3);
            System.out.println("成功换购：500ml可乐一瓶");
        }if (num==3){
            System.out.println("本次消费总金额：");
            System.out.println(money+10);
            System.out.println("成功换购：5公斤面粉");
        }if (num==4){
            System.out.println("本次消费总金额：");
            System.out.println(money+10);
            System.out.println("成功换购：1个苏泊尔炒菜锅");
        }if (num==5){
            System.out.println("本次消费总金额：");
            System.out.println(money+20);
            System.out.println("成功换购：欧莱雅爽肤水一瓶");
        }if (num==0){
            System.out.println("本次消费总金额：");
            System.out.println(money);
            System.out.println("不换购");
        }
    }
}
